package com.v5.ik;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created by zy on 2016/8/12.
 */
public class LikeWechatDialog extends Dialog {
    private TextView tv_text;
    private String text = "";

    public LikeWechatDialog(Context context, String text) {
        this(context, R.style.LikeWechatDialog);
        this.text = text;
    }

    public LikeWechatDialog(Context context) {
        this(context, R.style.LikeWechatDialog);
    }

    public LikeWechatDialog(Context context, int theme) {
        super(context, theme);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.like_wechat_dialog);
        tv_text = (TextView) findViewById(R.id.tv_text);
        tv_text.setText(text);
        setCancelable(false);
    }
}
